using System;

namespace EventBehaviorTree
{
    public class BB_bool : BBData<bool>
    {
        public override Type GetDataType() { return typeof(bool); }

        public BB_bool(bool value) : base(value)
        {
            _value = value;
        }
        public BB_bool() : this(false) { }

        public override bool Equals(object obj)
        {
            return GetValue().Equals(obj);
        }
        public override int GetHashCode()
        {
            return GetValue().GetHashCode();
        }

        public static bool operator ==(BB_bool lhs, BB_bool rhs)
        {
            return lhs.GetValue() == rhs.GetValue();
        }
        public static bool operator !=(BB_bool lhs, BB_bool rhs)
        {
            return !(lhs.GetValue() == rhs.GetValue());
        }
    }
}

